package com.bawei.module_detail.model.api

import com.bawei.lib_net.entity.ResponseEntity
import com.bawei.module_detail.model.entity.BulletScreenEntity
import com.bawei.module_detail.model.entity.CommentEntity
import com.bawei.module_detail.model.entity.DanmakuEntity
import com.bawei.module_detail.model.entity.DanmakuParam
import com.bawei.module_detail.model.entity.RecommendSimpleVideoEntity
import com.bawei.module_detail.model.entity.SendCommentEntity
import com.bawei.module_detail.model.entity.SendCommentParam
import retrofit2.http.Body

import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface DetailApi {
    /**
     * 获取视频评论接口
     */
    @GET("/comment/getCommentByUserId")
    suspend fun getComment(@Query("datatype")datatype:Int,@Query("itemid")itemid:String): ResponseEntity<List<CommentEntity>>

    /**
     * 发送评论接口
     */
    @POST("/comment/publishComment")
    suspend fun getSendComment(@Body sendCommentParam: SendCommentParam): ResponseEntity<SendCommentEntity>

    /**
     * 发送弹幕接口
     */
    @POST("/bulletscreen/publishBulletScreen")
    suspend fun getSendBulletScreen(@Body param: DanmakuParam): ResponseEntity<DanmakuEntity>

    /**
     * 获取视频评论接口
     */
    @GET("/bulletscreen/getBulletScreenInfo")
    suspend fun getBulletScreenInfo(@Query("datatype")datatype:Int,@Query("itemid")itemid:String): ResponseEntity<List<BulletScreenEntity>>

    /**
     * 获取视频评论接口
     */
    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun getRecommendSimpleVideo(@Query("page")page:Int,@Query("pagesize")pagesize:Int): ResponseEntity<List<RecommendSimpleVideoEntity>>

}